/*
 *
 * (c) Copyright Ascensio System SIA 2024
 *
 * This program is freeware. You can redistribute it and/or modify it under the terms of the GNU 
 * General Public License (GPL) version 3 as published by the Free Software Foundation (https://www.gnu.org/copyleft/gpl.html). 
 * In accordance with Section 7(a) of the GNU GPL its Section 15 shall be amended to the effect that 
 * Ascensio System SIA expressly excludes the warranty of non-infringement of any third-party rights.
 *
 * THIS PROGRAM IS DISTRIBUTED WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR
 * FITNESS FOR A PARTICULAR PURPOSE. For more details, see GNU GPL at https://www.gnu.org/copyleft/gpl.html
 *
 * You can contact Ascensio System SIA by email at sales@onlyoffice.com
 *
 * The interactive user interfaces in modified source and object code versions of ONLYOFFICE must display 
 * Appropriate Legal Notices, as required under Section 5 of the GNU GPL version 3.
 *
 * Pursuant to Section 7 � 3(b) of the GNU GPL you must retain the original ONLYOFFICE logo which contains 
 * relevant author attributions when distributing the software. If the display of the logo in its graphic 
 * form is not reasonably feasible for technical reasons, you must include the words "Powered by ONLYOFFICE" 
 * in every copy of the program you distribute. 
 * Pursuant to Section 7 � 3(e) we decline to grant you any rights under trademark law for use of our trademarks.
 *
*/


.root:not(.treeview) ul {
    display: none;
}

.treeheader {
    padding: 7px 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.28px;
    color: var(--color-text-tertiary-3);
    text-transform: uppercase;
}

.treeheader:not(:first-child) {
    margin-top: 16px;
}

ul.side-nav,
.side-nav ul,
.treeview {
    margin: 0;
    list-style: none;
}

.treeview .selected {
    color: #FF6F3D;
    font-weight: 700;
}

.treeview ul {
    list-style: none;
}

.side-nav li,
.treeview li {
    margin: 0;
    padding: 0 0 0 16px;
}

.side-nav > li,
.treeview.root > li {
    font-size: 13px;
}

.treeview:not(.root) li:last-child {
    padding-bottom: 0;
}

.side-nav a,
.treeview a,
.treeview a:visited {
    display: block;
    padding: 5px 0;
    line-height: 22px;
    color: var(--color-text-tertiary-2);
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.treeview a.selected {
    color: #FF6F3D;
}

.treeview a:hover {
    text-decoration: underline;
}

.treeview .hitarea {
    margin: 11px 0 0 -16px;
    height: 11px;
    width: 11px;
    float: left;
    cursor: pointer;
}

.treeview .collapsable-hitarea {
    background: url("img/sprite.svg") no-repeat -2px -106px transparent;
}

.treeview .expandable-hitarea {
    background: url("img/sprite.svg") no-repeat -2px -86px transparent;
}

@media screen and (max-width: 1024px) {
    .side-nav a,
    .treeview a,
    .treeview a:visited {
        word-wrap: initial;
        white-space: nowrap;
    }
}

@media screen and (max-width: 592px) {
    .treeheader {
        padding: 6px 0;
        font-size: 12px;
        font-weight: 600;
        line-height: 16px;
        letter-spacing: 0.05em;
        color: #808080;
    }

    .treeview .selected {
        font-weight: 400;
        max-width: 100%;
    }

    .side-nav:not(:last-child) {
        margin-bottom: 8px;
    }

    .side-nav a,
    .treeview a,
    .treeview a:visited {
        padding: 6px 0;
        font-size: 14px;
        line-height: 22px;
        color: #333333;
    }

    ul.side-nav,
    .treeview {
        padding: 0;
    }

    .side-nav > li ul {
        padding: 0 0 0 19px;
    }

    .side-nav li,
    .treeview li {
        line-height: initial;
        padding: 0;
    }

    .side-nav > li,
    .treeview.root > li {
        font-size: 14px;
        line-height: 22px;
        color: #333333;
    }

    .treeview .hitarea {
        margin: 11px 8px 0 0;
    }
}